#include "draw.h"

void drawBanner()
{
    printf("\n");
    printf("\n");
    printf("\n");

    printf("%s\n","██████╗ ███████╗███████╗██████╗     ███████╗██╗     ███████╗███████╗██████╗ ");
    printf("%s\n","██╔══██╗██╔════╝██╔════╝██╔══██╗    ██╔════╝██║     ██╔════╝██╔════╝██╔══██╗");
    printf("%s\n","██║  ██║█████╗  █████╗  ██████╔╝    ███████╗██║     █████╗  █████╗  ██████╔╝");
    printf("%s\n","██║  ██║██╔══╝  ██╔══╝  ██╔═══╝     ╚════██║██║     ██╔══╝  ██╔══╝  ██╔═══╝ ");
    printf("%s\n","██████╔╝███████╗███████╗██║         ███████║███████╗███████╗███████╗██║     ");
    printf("%s\n","╚═════╝ ╚══════╝╚══════╝╚═╝         ╚══════╝╚══════╝╚══════╝╚══════╝╚═╝     ");
    printf("%s\n","                                                                            ");

    printf("\n");
    printf(BLUE "========================================\n");
    printf("|" CYAN "        欢迎使用用户管理系统         " BLUE "|\n");
    printf("========================================\n" RESET);
}

void drawLoginBanner()
{
    printf("%s\n","                                                       ");
    printf("%s\n","                                                       ");
    printf("%s\n","                                                       ");
    printf("%s\n","██╗          ██████╗      ██████╗     ██╗    ███╗   ██╗");
    printf("%s\n","██║         ██╔═══██╗    ██╔════╝     ██║    ████╗  ██║");
    printf("%s\n","██║         ██║   ██║    ██║  ███╗    ██║    ██╔██╗ ██║");
    printf("%s\n","██║         ██║   ██║    ██║   ██║    ██║    ██║╚██╗██║");
    printf("%s\n","███████╗    ╚██████╔╝    ╚██████╔╝    ██║    ██║ ╚████║");
    printf("%s\n","╚══════╝     ╚═════╝      ╚═════╝     ╚═╝    ╚═╝  ╚═══╝");
    printf("%s\n","                                                       ");
    printf("%s\n","                                                       ");
    printf("%s\n","                                                       ");

}

void drawRegisterBanner()
{

    printf("%s\n","                                                                                         ");
    printf("%s\n","                                                                                         ");
    printf("%s\n","                                                                                         ");
    printf("%s\n","██████╗     ███████╗     ██████╗     ██╗    ███████╗    ████████╗    ███████╗    ██████╗ ");
    printf("%s\n","██╔══██╗    ██╔════╝    ██╔════╝     ██║    ██╔════╝    ╚══██╔══╝    ██╔════╝    ██╔══██╗");
    printf("%s\n","██████╔╝    █████╗      ██║  ███╗    ██║    ███████╗       ██║       █████╗      ██████╔╝");
    printf("%s\n","██╔══██╗    ██╔══╝      ██║   ██║    ██║    ╚════██║       ██║       ██╔══╝      ██╔══██╗");
    printf("%s\n","██║  ██║    ███████╗    ╚██████╔╝    ██║    ███████║       ██║       ███████╗    ██║  ██║");
    printf("%s\n","╚═╝  ╚═╝    ╚══════╝     ╚═════╝     ╚═╝    ╚══════╝       ╚═╝       ╚══════╝    ╚═╝  ╚═╝");
    printf("%s\n","                                                                                         ");


}

void drawMenuBorder()
{
    printf(BLUE "+--------------------------------------+\n" RESET);
}

void drawMenuItem(const char *item)
{
    printf(BLUE "| " RESET "%-38s" BLUE " |\n" RESET, item);
}

// 绘制输入框
void drawInputBox(const char *prompt)
{
    printf(BLUE "\n+--------------------------------------+\n");
    printf("| " RESET "%-36s" BLUE " |\n", prompt);
    printf("+--------------------------------------+\n" RESET);
    printf(CYAN "> " RESET);
}